﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace LynxWiki.ViewModels
{
    public class WikiTopicListings
    {
        public List<WikiTopicListingViewData> TopicListing { get; set; }
        public List<ListTypeSelection> Selections { get; set; }
        public string ListTypeSelected { get; set; }

        public WikiTopicListings()
        {
            Selections = new List<ListTypeSelection>();
            TopicListing = new List<WikiTopicListingViewData>();
        }
    }

    public class WikiTopicListingViewData
    {
        public string TopicName { get; set; }
        public string WikiDir { get; set; }

        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd HH:mm:ss}")]
        public DateTime CreatedOn { get; set; }

        public bool TopicLocked { get; set; }

    }

    public class ListTypeSelection
    {
        public int ID { get; set; }
        public string ListType { get; set; }
    }


}